from pyecharts.charts import Pie
from pyecharts import options
# 饼图数据类型
data = [("南昌",20),("长沙",40),("成都",60),("上海",80)]
pie = Pie()
pie.add("单位/个",data)
pie.set_global_opts(title_opts=options.TitleOpts(title="各城市岗位数量"))
pie.render("pienum.html")